/*
package controller.testAliSign;

import com.alibaba.fastjson.JSONObject;
import com.alipay.api.internal.util.AlipaySignature;

import java.util.HashMap;
import java.util.Map;

*/
/**
 * Created by PCG on 2016/9/28.
 *//*

public class TestAliSign {

    public static void main(String[] args) throws Exception{
        Map<String,String> pageInfo = new HashMap<String, String>();
        pageInfo.put(AlipayNewWapParamKeys.APP_ID,"2016092301959945");
        pageInfo.put(AlipayNewWapParamKeys.METHOD,"alipay.trade.wap.pay");
//        pageInfo.put(AlipayNewWapParamKeys.RETURN_URL,getReceiveUrl(context));
//        pageInfo.put(AlipayNewWapParamKeys.NOTIFY_URL,getNotifyUrl(context));
        pageInfo.put(AlipayNewWapParamKeys.CHARSET,"utf-8");
        pageInfo.put(AlipayNewWapParamKeys.VERSION,"1.0");
        pageInfo.put(AlipayNewWapParamKeys.TIMESTAMP, "2016-09-28 16:37:46");
        Map<String,String> businessMap = new HashMap<String, String>();
        businessMap.put(AlipayNewWapParamKeys.SUBJECT,"神州专车产品");
        businessMap.put(AlipayNewWapParamKeys.ORDER_ID,"01127326044010035");
        businessMap.put(AlipayNewWapParamKeys.AMOUNT,"1.0");
        businessMap.put(AlipayNewWapParamKeys.PRODUCT_CODE,"QUICK_WAP_PAY");
        pageInfo.put(AlipayNewWapParamKeys.BIZ_CONTENT, JSONObject.toJSONString(businessMap));
        pageInfo.put(AlipayNewWapParamKeys.SIGN_TYPE,"RSA");

        String priKey = "MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKNcYWPtRf6KIc46" +
                "oSQgmLJXbigVglpCZS9KczOuxd2hBj86/g7cOzrJPzFmvh7tWLK2W1tCG1fa7h0E" +
                "EfTzwChjEgllZYg78udel6jf84LpZVUsR3L1ho76E/UhhgKnNFW8cAEP1UulTssP" +
                "OwytOM45O5TzpZMtiEsF8juykSePAgMBAAECgYBmkzg35aHgrV2Cv/+0zp7yxMFP" +
                "fAoIoM4mPqpNln15p4VjqKgkLpcmV31NiMTyaHgcZzK//6dpp/eB0q9vzqol8OC1" +
                "WhNWJjuQpUhEeCX9vP/728qv8TJwqKbBtDZY/0uJd0g7rUxfgXD2lCEf58nj5tlt" +
                "xEnhzAu9EDRjolJZGQJBANTmrlAx9BWbZiDuMC/M7LXFvzr1/zKqnMisqm86wN6N" +
                "b6ffDndpcYwLUBt25PiWaLKtwF9m+RCEFx4Hkr9EV1UCQQDEbleM9rYM9kJSnWXl" +
                "6ne//US8N/dpFn+55uHRJL9rPyWEVANmtYQTc0USVojovIbUBAgXNG4eczv8wqdd" +
                "p3tTAkEAwyQlxi/jUCK9+5UW6dllZj84xqxQG3qydmV9WrJ5sgPlwfL76YvmnbyI" +
                "0oOp4AjNMml8GHXj+LV6EvZSFapoeQJAEDolVWnUJEH7vKNwFYxHFD8x/HKLJ81K" +
                "A+uE4CgvAAcZbFMcbNG19X1iSV+Is+FPKhijKneUWUOfwwO5m80ILQJBAMxPWNjH" +
                "5fLIfDUVu89boFGfX9Yg1NX5FypaCt3mf6H16Wub9u7BQt6Y7J4RnVSF0Rh0mxv/" +
                "WdPT+wHRgVaBA90=";

        String sign = AlipaySignature.rsaSign(pageInfo,priKey,"utf-8");
        System.out.println(sign);
    }

}
*/
